//
//  TMPushCell.m
//  国学培训用户端
//
//  Created by Tao Li on 2018/9/11.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMPushCell.h"
#import "TMPushModel.h"
@implementation TMPushCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(TMPushModel *)model{
    _model = model;
//    if (model.number == nil) {
//        self.payNumber.text = model.alert;
//        self.titile.hidden = YES;
//        self.hasPay.hidden = YES;
//    }else{
//        self.payNumber.text = [NSString stringWithFormat:@"订单号:%@", model.number];
//        self.titile.text = (model.pay == 0)?@"未支付":@"已支付";
//        // self.peopleLabel.text = (pushModel.pay == 0)?@"未支付":@"已支付";
//        self.hasPay.hidden = YES;
//    }
    self.payNumber.text = [NSString stringWithFormat:@"系统消息:%@", model.content];
    self.titile.text = [NSString stringWithFormat:@"时间:%@", [SPToolSet stringFromDateString:model.create_time]];
    self.hasPay.hidden = YES;
}
@end
